import 'package:flutter/material.dart';

class ColorsValue {
  static List<Color> get buttonColors =>
      const [Color(0xFF9AEDE2), Color(0xFF89D9EA)];
  static List<Color> get buttonColors2 =>
      const [Color(0xFF8D93DF), Color(0xFF95D9F1)];
  static List<Color> get buttonColors3 =>
      const [Color(0xFFFCFCFD), Color(0xFFECF5F8)];

  static List<Color> get indicatorColors => [purple, blue];
  static List<Color> get linearGradientColors => [
    Color(0x00ece2e2), Color(0xa8E4E7EB), Color(0xffD1D7DC), Color(0x00F7FAFC)];
  // #00ECE2E2 #A8E4E7EB #FFD1D7DC #00F7FAFC
  static List<Color> get linearGradientColors2_lixf => [
    Color(0x00ECE2E2), Color(0xA8E4E7EB), Color(0xFFD1D7DC), Color(0x00F7FAFC)];

  static Color get purple => const Color(0xffa48ddf);

  static Color get blue => const Color(0xff95d9f1);

  static Color get green => const Color(0xff95efd8);

  static Color get milkWhite => const Color(0xfffbfaf7);

  static Color get black => const Color(0xff5c5f63);
  static Color get black1 => const Color(0xff3f454c);

  static Color get black2a => const Color(0xff25282A);

  static Color get backgroundGrey => const Color(0xFFF3F3F3);

  static Color get textGrey => const Color(0xFFAAAFB5);

  static Color get grey => const Color(0xfff3f3f3);

  static Color get grey1 => const Color(0xff66696d);

  static Color get grey2 => const Color(0xffe7e7e7);

  static Color get grey3 => const Color(0x80D7D7D7);

  // static Color get grey3 => const Color(0xffaaafb5);
  //
  static Color get grey3a => const Color(0xff5B6671);
  static Color get grey4d => const Color(0x4DDFDFDD);

  static Color get green1 => const Color(0xff9aede2);

  static Color get green2 => const Color(0xff89d9ea);

  static Color get white => const Color(0xffffffff);

  static Color get blue1 => const Color(0xff6fd3ee);

  static Color get blue2 => const Color(0xff4F9EE6);

  static Color get divider => const Color(0xFFDFDFDD);

}

Color getHexColorFromString(String? colorString){
  try{
    colorString = colorString ?? "";
    colorString = colorString.replaceAll("#", "");
    if(colorString.length <= 6){
      colorString = "FF" + colorString;
    }
    int hexValue = int.parse(colorString,radix: 16);
    return Color(hexValue);
  }catch(e){
    return Colors.transparent;
  }

}